﻿// ////////////////////////////////////////////////////////////////////////////
// 
// SWE Case Tool
// 
// Solution:	CaseTool
// Project:		1. CaseTool
// Filename:	MethodNameAttribute.cs
// 
// File Created:	09:44 16.05.2013 
// Last Changed:	18:11 05.06.2013
// 
// ////////////////////////////////////////////////////////////////////////////

using System;

namespace SWE.CaseTool
{
	/// <summary>
	/// Contains the readable uniqe method name. This attribute is optional, if it does not exist,
	/// the class name will be used.
	/// </summary>
	[AttributeUsage(AttributeTargets.Class)]
	public class MethodNameAttribute : Attribute
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="MethodNameAttribute" /> class.
		/// </summary>
		/// <param name="name">The method name.</param>
		public MethodNameAttribute(string name) { Name = name; }

		/// <summary>
		/// Gets or sets methods the uniqe method name.
		/// </summary>
		/// <value>
		/// The method name.
		/// </value>
		public string Name { set; get; }
	}
}